package com.xds.springcloud.service.impl;

import com.xds.springcloud.entity.Payment;
import com.xds.springcloud.mapper.PaymentMapper;
import com.xds.springcloud.service.PaymentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author testjava
 * @since 2021-09-11
 */
@Service
public class PaymentServiceImpl extends ServiceImpl<PaymentMapper, Payment> implements PaymentService {

    @Override
    public int create(Payment payment) {
        return  baseMapper.insert(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return baseMapper.selectById(id);
    }
}
